-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GS] Show all applications when opening the search bar #78741
Conversation
Note: The 'display apps only when the term is empty' logic that is in the searchbar bothers me a little. Ideally, in that case, we would just not be performing a GS search and, instead, retrieving the full app list from core's I didn't do that change in the current PR as I wasn't sure of the future of the 'default state' of the searchbar menu. @ryankeairns is that alright if I open an issue to do this optimization, or are we planning to display other things than just apps when the search term is empty in the near futur? @myasonik: I think I found a UI bug regarding the searchbar:
I'm guessing this is an unwanted behavior and that we would like to have all results displayed again here? |
@pgayvallet we have this issue to track redesigning the default state. Several ideas have been circulated, none of which individually stood above the rest, so our decision was to release with the app results. From there, we will gather feedback from customers and evaluate whether or not we should move to something else. The technical implications of the current situation hadn't occurred to me and make a good deal of sense. What I don't have a grasp on is how much of an issue this presents. I would defer to the Platform team on whether or not this should be fixed now versus waiting for another release cycle. Thanks for bringing this up and explaining it thoroughly. |
The critically is low until we have additional providers. This can definitely wait for the next release cycle. |
Ok, understood. I've created a separate issue to track this and linked it to the 'default state redesign' issue. Thanks! |
Pinging @elastic/kibana-core-ui (Team:Core UI) |
Pinging @elastic/kibana-platform (Team:Platform) |
Quick reminder that this one is critical for 7.10. Let me know if I can be of any assistance getting it all cleared. Thanks! |
if (!term) { | ||
return of([]); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick circuit breaker to avoid unnecessary ES calls until we discuss more in details of the expected behavior for empty term searches in #78771
// cancel pending search if not completed yet | ||
if (searchSubscription.current) { | ||
searchSubscription.current.unsubscribe(); | ||
searchSubscription.current = null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other changes in the file are just cleanup. I just added previous search unsubscription to avoid previous results to be displayed in case of network issue (previous call finishing after next call)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a test for this to avoid breaking in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If practical, I think a test on the search bar behavior would be good, but otherwise the changes LGTM
// cancel pending search if not completed yet | ||
if (searchSubscription.current) { | ||
searchSubscription.current.unsubscribe(); | ||
searchSubscription.current = null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a test for this to avoid breaking in the future?
💚 Build SucceededMetrics [docs]@kbn/optimizer bundle module count
distributable file count
page load bundle size
History
To update your PR or re-run it, just comment with: |
* increase default number of results to show all apps * fix circuit breaker * fix ut * add unit test
Summary
Fix #78174
defaultMaxProviderResults
constant to allow all apps to be displayedChecklist